package util;

import java.util.ArrayList;
import java.util.List;

/**
 * @opt nodefillcolor green
 * @opt operations
 */
public class StringToStringArray {

	public static String[] convert(String word){
		if (word == null)
			throw new NullPointerException();
		else{
			List<String> 	pattern 	= new ArrayList<String>();
			char[] 			characters	= word.toCharArray();
			for(char character : characters){
				pattern.add(Character.toString(character));
			}
			String[] wordArray = pattern.toArray(new String[pattern.size()]);
			return wordArray;
		}
	}
}
